
<!DOCTYPE html>
<html>
<head>
	<title>订单详情</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta name="viewport" content="width=device-width,user-scalable=no" />
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('public_url');?>/css/common.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('public_url');?>/css/order_detail.css"></head>
<body>
	<!-- <div class="header">
		<div class="back">
			<a href=""></a>
		</div>
		订单详情
	</div> -->

	<div class="order_detail_sta">
    	<?php 
    	   if ($order_status === 2){
    	?>
    		<p class="order_detail_sta1"><img src="<?php echo $this->config->item('public_url');?>/images/sta1.png" alt="">等待支付</p>
    		<!--  <p class="order_detail_sta2">剩余付款时间  20:39</p>-->
		<?php }elseif ($order_status == 3){?>
		<p class="order_detail_sta1"><img src="<?php echo $this->config->item('public_url');?>/images/sta1.png" alt="">等待发货</p>
		<?php }elseif ($order_status == 4){?>
		<p class="order_detail_sta1"><img src="<?php echo $this->config->item('public_url');?>/images/sta1.png" alt="">等待收货</p>
		<?php }elseif ($order_status == 5){?>
		<p class="order_detail_sta1"><img src="<?php echo $this->config->item('public_url');?>/images/sta1.png" alt="">已完成</p>
		<?php }elseif ($order_status == 6){?>
		<p class="order_detail_sta1"><img src="<?php echo $this->config->item('public_url');?>/images/sta1.png" alt="">订单已取消</p>
		<?php }else{?>
		<p class="order_detail_sta1"><img src="<?php echo $this->config->item('public_url');?>/images/sta1.png" alt="">订单不存在</p>
		<?php }?>
	</div>
	<?php if ($name != ""){?>
	<div class="order_content">
		<div class="order_address">
			<div class="name_tel">
				<span class="name"><?php echo $name;?></span>
				<span class="tel"><?php echo $tel;?></span>
			</div>
			<div class="ads">
				<span class="address" data-address=""><?php echo $address;?></span>
			</div>
		</div>
	</div>

	<div class="order_list">
			<ul>
				<li>
					<div class="order_proimg">
						<img src="<?php echo $product_thumb_img;?>" alt=""></div>
					<div class="order_des">
						<div class="order_protitle">
						<?php if ($sorce == '2' or $sorce == '4'){?>
						<p class="choujiang">抽奖</p> <div class="order_prot">
						<?php }?>	
						<?php echo $product_title;?></div><p class="order_protitle_money">
								<img src="<?php echo $this->config->item('public_url');?>/images/4_19.png" alt=""><?php echo $product_need_npoint;?></p>
						</div>
						<div class="order_color">
							<span><?php echo $product_attr_name;?></span>
							<p class="order_number">x<?php echo $number;?></p>
						</div>
					</div>
				</li>
			</ul>
	</div>

	<div class="orider_all">
		<div  class="orider_all_li">
			实付
			<p class="order_protitle_money order_protitle_allmoney">
				<img src="<?php echo $this->config->item('public_url');?>/images/4_19.png" alt="">
				<?php echo $total_price;?></p>
		</div>
	</div>


	<div class="order_detail_time">
	订单编号：<?php echo $order_num;?><br>
	下单时间：<?php  if ($create_date != ""){echo date('Y-m-d H:i:s',$create_date+8*60*60);}?>
		
	</div>
<?php }?>


<!--  <div class="order_detail_pay">
	
	<div class="order_detail_determine"><a href="javascript:;">立即支付</a></div>
	<div class="order_detail_cancel"><a href="javascript:;">取消订单</a></div>
</div>
-->
	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/jquery-3.2.1.min.js"></script>

	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/common.js"></script>
</body>
</html>